package com.factory.iamp.utils.helper;

import lombok.Data;

@Data
public class ResponseHelper<T> {
    private int code;
    private String msg;
    private T data;

    public ResponseHelper(T data) {
        this(ResponseCode.SUCCESS, data);
    }

    public ResponseHelper(ResponseCode responseCode, T data) {
        this.code = responseCode.getCode();
        this.msg = responseCode.getMsg();
        this.data = data;
    }
}
